<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
{#    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">#}
</head>
<body>
<form action="" method="post">
    <table align="center">
        <tr>
            <td>物资名称</td>
            <td><input type="text" name="name"></td>
        </tr>
        <tr>
            <td>物资类别</td>
            <td>
                <select name="type">
                    {% for protype in protype_list %}
                        <option value="{{ protype.id }}">{{ protype.name }}</option>
                    {% endfor %}
                </select>
            </td>
        </tr>
        <tr>
            <td>采购时间</td>
            <td><input type="date" name = "addTime"></td>
        </tr>
        <tr>
            <td>计量单位</td>
            <td><input type="text" name="unit"></td>
        </tr>
        <tr>
            <td>采购单价</td>
            <td><input type="text" name="price"></td>
        </tr>
        <tr>
            <td>物资描述</td>
            <td><input type="text" name="description"></td>
        </tr>
        <tr>
            <td colspan="4">
                <button>添加物资</button>
                <button><a href="{% url 'show' %}" style="text-decoration: none;color: black">返回列表</a></button>
            </td>
        </tr>
    </table>
</form>
</body>
</html>